﻿using System;
using UnityEngine;

namespace Valve.VR.InteractionSystem
{
	// Token: 0x02000601 RID: 1537
	[RequireComponent(typeof(ParticleSystem))]
	public class DestroyOnParticleSystemDeath : MonoBehaviour
	{
		// Token: 0x0600271C RID: 10012 RVA: 0x000E4634 File Offset: 0x000E2834
		private void Awake()
		{
			this.particles = base.GetComponent<ParticleSystem>();
			base.InvokeRepeating("CheckParticleSystem", 0.1f, 0.1f);
		}

		// Token: 0x0600271D RID: 10013 RVA: 0x000E4658 File Offset: 0x000E2858
		private void CheckParticleSystem()
		{
			if (!this.particles.IsAlive())
			{
				UnityEngine.Object.Destroy(base.gameObject);
			}
		}

		// Token: 0x04002720 RID: 10016
		private ParticleSystem particles;
	}
}
